﻿using System;
using ORS.OrderRobot.ServiceContracts.Dtos;

namespace ORS.OrderRobot.ServiceContracts.ThridPartApi
{
	/// <summary>
	/// 三方商品服务
	/// </summary>
	public interface IThirdProductService
	{
        /// <summary>
        /// 判断商品是否存在
        /// </summary>
        /// <param name="productId"></param>
        /// <returns></returns>
        Task<bool> ProductExists(string productId);
        /// <summary>
        /// 获取商品详情的内容
        /// </summary>
        /// <param name="productId"></param>
        /// <returns>商品存在时返回响应内容，否则null</returns>
        Task<string?> GetProductDetail(string productId);

    }
}

